home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / Developer Documentation / Recipes, Tech Notes & Articles / Recipes / Externalizing Preferred Kind < prev    next >
Encoding:
Text File  |  1996-07-25  |  1.5 KB  |  31 lines  |  [TEXT/ttxt]

  1. OpenDocâ„¢ Recipes
  2.  
  3. Externalizing Preferred Kind Recipe
  4. By The OpenDoc Design Team
  5. July 24th, 1996
  6.  
  7.  
  8. © 1996  Apple Computer, Inc. All Rights Reserved.
  9. Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
  10. Mac and OpenDoc are trademarks of Apple Computer, Inc.
  11.  
  12.  
  13. Intro
  14.  
  15. When your editor externalizes its preferred kind into its storage unit, it should also externalize the preferred kind's user string.
  16. (For information on when to externalize a part's preferred kind into a storage unit, see the OpenDoc Programmers Guide).
  17.  
  18. When you externalize the preferred kind into the part storage unit's kODPropPreferredKind property you should also externalize its user string into the storage unit's kODPropPreferredKindUserString property.
  19.  
  20. If you support this, future versions of OpenDoc will be able to display the user name of the preferred kind for a part when your editor is not installed. Also, OpenDoc will automatically place the user string for your editor into your part's storage unit. This will enable OpenDoc to display to the user the name of the editor that created the part when it is not installed.
  21.  
  22. Caveat
  23.  
  24. OpenDoc 1.1 does not define kODPropPreferredKindUserString in StdProps.[x]h.
  25.  
  26. It will be defined as follows:
  27.  
  28. const  ODPropertyName kODPropPreferredKindUserString    = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Metadata:PreferredKindUserString";
  29.  
  30. You should use this ISO string in your code until the constant has been added to the OpenDoc interfaces.
  31.